<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=request.getContextPath()%>/"/>
</head>
<body>
	<p><a href="employee/add">添加</a></p>
	<table width="80%" align="center" border="1px">
		<tr>
			<th>员工编号:</th>
			<th>员工姓名:</th>
			<th>员工年龄:</th>
			<th>员工性别:</th>
			<th>员工电话:</th>
			<th>员工位置:</th>
			<th>操作:</th>
		</tr>
	<c:forEach var="emp" items="${list}">
		<tr>
			<td>${emp.empId}</td>
			<td>${emp.empName }</td>
			<td>${emp.empAge }</td>
			<td>${emp.empSex }</td>
			<td>${emp.empTel}</td>
			<td>${emp.pos.posName}</td>
			<td>
				<a href="employee/update/${emp.empId}">修改</a>
				<a href="employee/delete/${emp.empId}">删除</a>
			</td>
		</tr>
	</c:forEach>
	</table>
</body>
</html>